import { request } from '@/utils/request/request';
import { RequestEnum } from '@/enums/httpEnum';

export const foodApi = {
  foodList: '/food/list',
  foodDetail: '/food/detail',
} as const;

export const getFoodList = (params: API.foodListRequest) => {
  return request({
    url: foodApi.foodList,
    method: RequestEnum.GET,
    params,
  });
};
